import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.Display;

/**
 * Created by IntelliJ IDEA.
 * User: Fili
 * Date: Feb 24, 2007
 * Time: 9:23:05 AM
 */
public class TDMIDlet extends MIDlet
{
    public static TDMIDlet tdMIDlet;
    public static TDCanvas tdCanvas;

    public TDMIDlet()
    {
        for (int i=0;i<256;i++)
            System.out.println(i+"= "+((char)i));
        
        System.out.println("TDMidlet()");
        tdMIDlet = this;
        tdCanvas = new TDCanvas();
    }

    protected void startApp() throws MIDletStateChangeException
    {
        System.out.println("startApp");
        Display.getDisplay(this).setCurrent(tdCanvas);
    }

    protected void pauseApp()
    {
        System.out.println("pauseApp");
    }

    protected void destroyApp(boolean b) throws MIDletStateChangeException
    {
        System.out.println("destroyApp("+b+")");
    }
}
